package com.anolesoft.yr.mbus.cont.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 合同附件表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "cont_appendix")
public class ContAppendix implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "objuid", type = IdType.INPUT)
    private String objuid;

    /**
     * 合同主键
     */
    @TableField(value = "cont_main_uid")
    private String contMainUid;

    /**
     * 附件格式
     */
    @TableField(value = "format")
    private Byte format;

    /**
     * 附件地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 附件种类
     */
    @TableField(value = "`type`")
    private Byte type;

    /**
     * 顺序号
     */
    @TableField(value = "order_code")
    private Byte orderCode;

    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    private Date uploadTime;

    /**
     * 上传人
     */
    @TableField(value = "upload_user_uid")
    private String uploadUserUid;

    private static final long serialVersionUID = 1L;

    public static final String COL_OBJUID = "objuid";

    public static final String COL_CONT_MAIN_UID = "cont_main_uid";

    public static final String COL_FORMAT = "format";

    public static final String COL_ADDRESS = "address";

    public static final String COL_TYPE = "type";

    public static final String COL_ORDER_CODE = "order_code";

    public static final String COL_UPLOAD_TIME = "upload_time";

    public static final String COL_UPLOAD_USER_UID = "upload_user_uid";
}